package com.itheima.service;

import com.itheima.pojo.PageBean;
import com.itheima.pojo.User;

public interface UserService {
    User findByUserName(String username);

    void register(String username, String password);

    void update(User user);
    //更新图像
    void updateAvatar(String avatarUrl);
    //更新密码
    void updatePwd(String newPassword);

    PageBean<User> list(Integer pageNum, Integer pageSize, String username1, String permission1, String createTime1);

    void updatePermission(Integer id, String permission);

    void delete(Integer id);

    //void add(String username, String password
}
